from django.db import models

class Prices(models.Model):
    entity_id = models.IntegerField()
    name = models.CharField(max_length=100)
    price = models.DecimalField(max_digits=10, decimal_places=2)
    priceFrom = models.DecimalField(max_digits=10, decimal_places=2)
    priceTo = models.DecimalField(max_digits=10, decimal_places=2)
    priceAvg = models.DecimalField(max_digits=10, decimal_places=2)
    status = models.BooleanField()
    owner = models.CharField(max_length=50)
    special_price = models.BooleanField()

    def __unicode__(self):
        return self.name
